import request from '../utils/request'

// 抽取方法 - 编辑用户信息
const editUserInfo = data => {
    return request({
        url: '/v1_0/user/profile',
        method: 'patch',
        data
    })
}

const uploadPhoto = data => {
    return request({
        url: '/v1_0/user/photo',
        method: 'patch',
        data
    })
}

// 暴露出去
export { editUserInfo, uploadPhoto }